export const portManagement = [ // 端口管理
    {
        title: '策略名称',
        dataIndex: 'name',
    },
    {
        title: '进程名',
        dataIndex: 'processname',
    },
    {
        title: '协议',
        dataIndex: 'protocol',
        slots: {
            customRender: 'protocol'
        },
        slotsType: 'format',
        slotsFunc: (val) => ({
            0: 'TCP',
            1: 'UDP',
            2: 'TCP,UDP'
        }[val])
    },
    {
        title: '端口',
        dataIndex: 'port',
    },
    {
        title: '是否启用',
        dataIndex: 'using',
        slots: {
            customRender: 'using'
        },
        slotsType: 'format',
        slotsFunc: (val) => ({
            1: '是',
            0: '否'
        }[val])
    },
]
